var app = getApp();

Page({
  data: {
    menuitems: [
      { text: '证件核查', url: '../upload/upload', icon: 'images/证件审查.png', tips: '' },
      { text: '订单查询', url: '../dingdan/dingdan', icon: 'images/证件审查.png', tips: '' }
    ],
    sh:[]
  },

  onLoad: function () {
    var that  = this;
    var l = that.data.sh;
    this.setData({
      userInfo: app.globalData.userInfo
    })
    wx.request({
      url: 'https://www.hkzhaoscut.top/getaccepted',
      data:{
        u_id:wx.getStorageSync("openid")
      },
      success:function(res){
        that.setData({
          shenhe:res.data
        });
      l  = res.data;
      that.setData({
       sh:l
      })
      }
    })
  },
   isOK:function(){
     var ok = this.data.sh;
     
     if(ok=="已审核")
     {
       var url = this.data.menuitems;
       url[0].url = "../msg_success/msg_success";
       this.setData({
         menuitems:url
       })
     }
   }
})